<?php
namespace app\common\model;

use think\Model;

class Title extends Model
{
    protected $insert = ['create_time'];

    protected function setCreateTimeAttr(){
        return date('Y-m-d H:i:s');
    }

    // protected function getTextAttr($value){
    //     $str = strip_tags(html_entity_decode($value),'<p>|<br>');
    //     return trim($str);
    // }

    protected function getCreateTimeAttr($value){
        return $value;
    }
}